home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / NLoad / UDPLoadView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-04-10  |  514 b   |  23 lines

  1. #define REMOTEUPDATE 60
  2. #define WAITSECONDS 4        /* # seconds we wait for a remote server */
  3.  
  4. #import "LoadView.h"
  5.  
  6. #define    UDPSERVERPORT 5500    /* Remote server port (unnecessary for RPC) */
  7.  
  8. @interface UDPLoadView : LoadView
  9. {
  10.     int waitSecs; /* # seconds we wait for a remote server */
  11.  
  12.     int udpSocket; /* Not used for RPC hosts */
  13.     struct sockaddr_in udpServerSocket; /* Not used for RPC hosts */
  14. }
  15.  
  16. - initFrame:(const NXRect *) frameRect;
  17.  
  18. - startTimer;
  19.  
  20. - loadAverage:(long *)vector loadScale:(int *)scale;
  21.  
  22. @end
  23.